//    Copyright (C) Kherty.  All rights reserved.
using System.Diagnostics;
using System.Diagnostics.Contracts;

namespace OpenLS.Spreadsheet
{
    public struct CellSpan
    {
        public CellSpan(int row, int column)
        {
            Contract.Requires(row >= 0);
            Contract.Requires(column >= 0);
            _row = row;
            _column = column;
        }
        private readonly int  _row;
        public int  Row
        {
            get { return _row; }
        }
        private readonly int  _column;
        public int  Column
        {
            get { return _column; }
        }
	
	
        internal bool Meaninful
        {
            get
            {
                return (Row > 0 || Column > 0);
            }
        }
    }
}
